//
//  MoreTypeFootView.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2018/11/30.
//  Copyright © 2018年 DUONIU_MAC. All rights reserved.
//

import UIKit

class MoreTypeFootView: UIView {
    
    let cancelBtn = UIButton() //取消
    let confirmBtn = UIButton() //确认

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        cancelBtn.setTitle(global_cancel, for: .normal)
        cancelBtn.setTitleColor(UIColor.blue, for: .normal)
        cancelBtn.titleLabel?.font = UIFont.systemFont(ofSize: RATIO(maxNum: 16))
        cancelBtn.layer.borderColor = UIColor.lineColor().cgColor
        cancelBtn.layer.borderWidth = 1
        cancelBtn.layer.cornerRadius = 5
        cancelBtn.layer.masksToBounds = true
        self.addSubview(cancelBtn)
        
        confirmBtn.setTitle(global_confirm, for: .normal)
        confirmBtn.backgroundColor = UIColor.red
        confirmBtn.titleLabel?.font = UIFont.systemFont(ofSize: RATIO(maxNum: 16))
        confirmBtn.layer.cornerRadius = 5
        confirmBtn.layer.masksToBounds = true
        self.addSubview(confirmBtn)
        
        cancelBtn.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.centerX.equalTo(ScreenW/3)
            make.width.equalTo(RATIO(maxNum: 80))
            make.height.equalTo(RATIO_H(maxNum: 30))
        }
        
        confirmBtn.snp.makeConstraints { (make) in
            make.centerY.width.height.equalTo(cancelBtn)
            make.centerX.equalTo(ScreenW/3 * 2)
        }
    }
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
